<?php
include("../includes/config.php");
	if(@$_SESSION['loginAdmin']){
		$username = $_SESSION['loginAdmin'];
		$res = mysql_query("select username from admins where username = '$username'");
		if(mysql_num_rows($res) ==  0){
				header("location:/admin/login.php");
		}
	}else{
		header("location:/admin/login.php");
	}
?>